﻿using System.Windows;

namespace DCClient.Views
{
    /// <summary>
    /// Форма для удаления объекта
    /// </summary>
    public partial class PropertyDeleteView : Window
    {
        /// <summary>
        /// Создаваемый объект
        /// </summary>
        public Property Item { get; set; }
        
        public PropertyDeleteView()
        {
            InitializeComponent();
        }

        private void DeletingButtonClick(object sender, RoutedEventArgs e)
        {
            Item = new Property();
            var name = NameTextBox.Text;
            Item.Name = name;
            Close();
        }
    }
}
